<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Strict//EN' 'http://www.w3.org/TR/html4/strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name="description" content="周末看新闻--网罗一周热门资讯">
<title>周末看新闻--网罗一周热门资讯</title>
<link rel="stylesheet" href="/newskk/Public/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/newskk/Public/bootstrap/css/style.css">
<link rel="stylesheet" href="/newskk/Public/css/bootstrap-datetimepicker.min.css">
<script src="/newskk/Public/bootstrap/js/jquery2.min.js"></script>
<script src="/newskk/Public/bootstrap/js/bootstrap.min.js"></script>
</head>
<body class="body">
  <header>
    <div class="container">
      <div class="row">
        <div class="span6">
        <a href="/newskk/" title="回到首页">
        <img class="img" alt="周末看新闻" src="/newskk/Public/images/logo1.png">
        </a>
        </div>
      </div>
    </div>
  </header>
<!-- 导航start -->
<div class="menu">
<div class="left"></div>
<div class="center">
<a href="/newskk/"><button class="btn">浏览新闻</button></a>
<a href="/newskk/index.php/Home/Form/edit/id"><button class="btn" style="align:right;">添加新闻</button></a>
</div>
<div class="right"></div>
</div>
<script>
   $(function () {
      $('#myTab li:eq(1) a').tab('show');
   });
</script>
<!-- 导航end -->
<!-- 内容start -->
<section>
  <div class="container">
    <div class="row">
      <main class="col-md-12 main-content">
      
<div id=<?php echo ($data["id"]); ?> class="post" style="width:100%;">
  <h1><?php echo ($data["title"]); ?></h1>
  <div>
  <div class="author">发布者：<h4 style="color:red;"><?php echo ($data["eauthor"]); ?></h4></div>
  <div class="author"> <?php echo ($data["etime"]); ?> </div>
  </div><br><br>
  <img alt="<?php echo ($data["title"]); ?>" style="margin-left:300px; width:500px; height:auto;"src="/newskk/Public/images/uppic/<?php echo ($data["pic"]); ?>">
  <div class="rcontent">
  <?php echo ($data["content"]); ?>
  </div><br><br>
  <a href="/newskk/index.php/Home/Form/edit/id/<?php echo ($data["id"]); ?>" class="btn btn-info">编辑新闻内容</a>
<a href="/newskk/index.php/Home/Form/delete/id/<?php echo ($data["id"]); ?>" class="btn btn-info" style="float:right;">删除该条新闻</a>
</div>
 </main> 
    </div>
  </div>
</section>
<!-- 内容end --> 
<script type="text/javascript" src="/newskk/Public/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="/newskk/Public/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
	$('.form_date').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
</script>
</body>
</html>